uint32_t system_reset_counter = 1;
-static char opt_acpi_sleep[20];
+static char __initdata opt_acpi_sleep[20];
string_param("acpi_sleep", opt_acpi_sleep);
static u8 sleep_states[ACPI_S_STATE_COUNT];
return alloc_vcpu(dom0, 0, 0);
}
-static unsigned int opt_dom0_shadow;
+static unsigned int __initdata opt_dom0_shadow;
boolean_param("dom0_shadow", opt_dom0_shadow);
-static char opt_dom0_ioports_disable[200] = "";
+static char __initdata opt_dom0_ioports_disable[200] = "";
string_param("dom0_ioports_disable", opt_dom0_ioports_disable);
#if defined(__i386__)
static void gdb_smp_pause(void);
static void gdb_smp_resume(void);
-static char opt_gdb[30];
+static char __initdata opt_gdb[30];
string_param("gdb", opt_gdb);
static void gdbstub_console_puts(const char *str);
* Comma-separated list of hexadecimal page numbers containing bad bytes.
* e.g. 'badpage=0x3f45,0x8a321'.
*/
-static char opt_badpage[100] = "";
+static char __initdata opt_badpage[100] = "";
string_param("badpage", opt_badpage);
/*
#include <xsm/xsm.h>
/* opt_sched: scheduler - default to credit */
-static char opt_sched[10] = "credit";
+static char __initdata opt_sched[10] = "credit";
string_param("sched", opt_sched);
/* if sched_smt_power_savings is set,
#include <public/sysctl.h>
/* console: comma-separated list of console outputs. */
-static char opt_console[30] = OPT_CONSOLE_STR;
+static char __initdata opt_console[30] = OPT_CONSOLE_STR;
string_param("console", opt_console);
/* conswitch: a character pair controlling console switching. */
switch_serial_input();
}
-int console_has(const char *device)
+int __init console_has(const char *device)
{
char *p;
* can be specified in place of a numeric baud rate. Polled mode is specified
* by requesting irq 0.
*/
-static char opt_com1[30] = "", opt_com2[30] = "";
+static char __initdata opt_com1[30] = "";
+static char __initdata opt_com2[30] = "";
string_param("com1", opt_com1);
string_param("com2", opt_com2);
* after domain 0 starts to boot. The default behaviour is to relinquish
* control of the console to domain 0.
*/
-static char opt_vga[30] = "";
+static char __initdata opt_vga[30] = "";
string_param("vga", opt_vga);
/* VGA text-mode definitions. */